"""
URL configuration for campus_rental project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, re_path
from django.views.static import serve
from campus_rental.settings import MEDIA_ROOT
from web import views


urlpatterns = [
    path('python/getUserList', views.getUserList),
    path('python/getCategoryNameList', views.getCategoryNameList),
    path("python/login", views.login),
    path("python/register", views.register),
    path("python/modifyUsers", views.modifyUsers),
    path("python/upload", views.upload),
    re_path(r"python/media/(?P<path>.*)$", serve,
            {'document_root': MEDIA_ROOT}),
    path("python/getUserList", views.getUserList),
    path("python/getGoodList", views.getGoodList),
    path("python/getCategoryNameList", views.getCategoryNameList),
    path("python/addCategory", views.addCategory),
    path("python/updateCategory", views.updateCategory),
    path("python/deletCategory", views.deletCategory),
    path("python/getLikeList", views.getLikeList),
    path("python/addLike", views.addLike),
    path("python/deletLike", views.deletLike),
    path("python/getLikenum", views.getLikenum),
    path("python/getCollectList", views.getCollectList),
    path("python/addCollect", views.addCollect),
    path("python/deletCollect", views.deletCollect),
    path("python/getCollectnum", views.getCollectnum),
    path("python/getLikenum", views.getLikenum),
    path("python/getCommentList", views.getCommentList),
    path("python/addComment", views.addComment),
    path("python/deletComment", views.deletComment),
    path("python/getCommentnum", views.getCommentnum),
    path("python/addGood", views.addGood),
    path("python/updateGood", views.updateGood),
    path("python/deletGood", views.deletGood),
    path("python/getOrderList", views.getOrderList),
    path("python/addOrder", views.addOrder),
    path("python/updateOrder", views.updateOrder),
    path("python/deletOrder", views.deletOrder),
    path("python/categorynum", views.categorynum),
    path("python/changepassword", views.changepassword),
    path("python/addGoodclick", views.addGoodclick),
    path("python/getOrderData", views.getOrderData),











]
